package onlinejudge.entity;

/**
 * 题解实体
 * @author tpw
 */
public class Solution {

	private int solutionId;
	private int userId;
	private int problemId;
	private String solutionContent;
	private String code;
	private String solutionDate;
	private int solutionViewCount;
	
	public Solution() {
		super();
	}
	public Solution(int solutionId, int userId, int problemId, String solutionContent, String code, String solutionDate,
                    int solutionViewCount) {
		super();
		this.solutionId = solutionId;
		this.userId = userId;
		this.problemId = problemId;
		this.solutionContent = solutionContent;
		this.code = code;
		this.solutionDate = solutionDate;
		this.solutionViewCount = solutionViewCount;
	}

	public int getSolutionId() {
		return solutionId;
	}
	public void setSolutionId(int solutionId) {
		this.solutionId = solutionId;
	}
	public int getUserId() {
		return userId;
	}
	public void setUserId(int userId) {
		this.userId = userId;
	}
	public int getProblemId() {
		return problemId;
	}
	public void setProblemId(int problemId) {
		this.problemId = problemId;
	}
	public String getSolutionContent() {
		return solutionContent;
	}
	public void setSolutionContent(String solutionContent) {
		this.solutionContent = solutionContent;
	}
	public String getCode() {
		return code;
	}
	public void setCode(String code) {
		this.code = code;
	}
	public String getSolutionDate() {
		return solutionDate;
	}
	public void setSolutionDate(String solutionDate) {
		this.solutionDate = solutionDate;
	}
	public int getSolutionViewCount() {
		return solutionViewCount;
	}
	public void setSolutionViewCount(int solutionViewCount) {
		this.solutionViewCount = solutionViewCount;
	}
	@Override
	public String toString() {
		return "Solution [solutionId=" + solutionId + ", userId=" + userId + ", problemId=" + problemId
				+ ", solutionContent=" + solutionContent + ", code=" + code + ", solutionDate=" + solutionDate
				+ ", solutionViewCount=" + solutionViewCount + "]";
	}
}
